package com.example.demo.pattern.strategy;

import org.springframework.stereotype.Service;

@Service
public class OperationMultiply implements Strategy {
    @Override
    public String getType() {
        return "multiply";
    }

    @Override
    public int doOperate(int num1, int num2) {
        return num1 * num2;
    }
}
